﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TestDataSchema"
    targetNamespace="http://tdunit.org/TestDataSchema.xsd"
    elementFormDefault="qualified"
    xmlns="http://tdunit.org/TestDataSchema.xsd"
    xmlns:mstns="http://tdunit.org/TestDataSchema.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:element name="TestData">
    <xs:complexType>
      <xs:sequence minOccurs="1" maxOccurs="unbounded">
        <xs:element name="Import" minOccurs="0" maxOccurs="unbounded">
          <xs:complexType>
            <xs:attribute name="File" use="required" type="xs:string" />
          </xs:complexType>
        </xs:element>
        <xs:element name="Table">
          <xs:complexType>
            <xs:sequence>
              
              <xs:element name="Row" minOccurs="1" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Column" minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:attribute name="Name" use="required" type="xs:string" />
                        <xs:attribute name="Value" use="required" type="xs:string" />
                        <xs:attribute name="ShouldQuote" use="optional" type="xs:boolean" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="Name" type="xs:string" use="optional" />
                  <xs:anyAttribute processContents="skip" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            
            <xs:attribute name="Name" use="required" type="xs:string" />
            <xs:attribute name="PrimaryKey" use="required" type="xs:string" />
            <xs:attribute name="IsAutoIdentity" use="optional" type="xs:boolean" />
            <xs:attribute name="Alias" use="optional" type="xs:string" />
          
          </xs:complexType>
        </xs:element>

      </xs:sequence>
    </xs:complexType>
  </xs:element>

</xs:schema>
